package com.xlh.enums.courseTest;

import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;

@Getter
@AllArgsConstructor
public enum PaperEndTypeEnum {

    ENDDATE(1, "日期结束"),
    ENDTIME(2, "时长结束");

    private final Integer code;
    private final String message;

    private static Map<Integer, PaperEndTypeEnum> codeMap = Maps.newHashMap();

    static {
        for (PaperEndTypeEnum en : PaperEndTypeEnum.values()){
            codeMap.put(en.getCode(), en);
        }
    }

}
